<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改学生信息</title>
</head>
<body>
	<h3 align="center">修改学生信息</h3>
	<form action="/student?action=put" method="post" enctype="multipart/form-data">
		<table align="center">
			<tr>
				<td align="right">学号</td>
				<td align="left"><input type="text" readonly="readonly" style="background: gray;" name="id" id="id" value="${stu.id}" /></td>
			</tr>
			<tr>
				<td align="right">姓名</td>
				<td align="left"><input type="text" name="name" id="name" value="${stu.name}"/></td>
			</tr>
			<tr>
				<td align="right">性别</td>
				<td align="left"><input type="text" name="sex" id="sex" value="${stu.sex}" /></td>
			</tr>
			<tr>
				<td align="right">年龄</td>
				<td align="left"><input type="number" name="age" id="age" value="${stu.age}" /></td>
			</tr>
			<tr>
				<td align="right">班级</td>
				<td align="left"><input type="text" name="grade" id="grade" value="${stu.grade}" /></td>
			</tr>
			<tr>
				<td align="right">成绩</td>
				<td align="left"><input type="text" name="score" id="score" value="${stu.score}"/></td>
			</tr>
			<tr>
				<td align="right">相片</td>
				<td align="left">
				<input type="file" name="file" id="photo" />
				<br>
				<img alt="" width="30" height="30" src="${stu.photo}">
				</td>
			</tr>
			<tr>
				<td></td>
				<td><input type="submit" value="提交"> <input
					type="reset" value="重置"></td>
			</tr>
		</table>
	</form>
</body>
</html>